package com.csaba.swing.model;

import com.csaba.connector.model.Customer;
import com.csaba.connector.model.Session;

public class CustomerCache extends SessionCache<Customer>
{
	private static CustomerCache instance;

	public static CustomerCache getInstace()
	{
		if ( instance == null )
		{
			instance = new CustomerCache();
		}
		return instance;
	}

	protected Customer[] load( Session session )
	{
		return new Customer[] { session.getCustomer() };
	}
}
